<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>地图</title>
    <script src="http://api.map.baidu.com/api?type=webgl&v=1.0&ak=wO4DVvrOUXWGELP1eEcFf4BjgCEOQzNV"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        html,
        body {
            height: 100%;
        }
        
        #box {
            height: 100%;
        }
    </style>
</head>

<body>
    <div id="box"></div>
</body>
<script>
    var map = new BMapGL.Map('box'); // 创建Map实例
    map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 12); // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放
</script>

</html>